/*
 * XML Type:  GeneralSecurityInfo
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.GeneralSecurityInfo
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML GeneralSecurityInfo(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class GeneralSecurityInfoImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.GeneralSecurityInfo
{
    
    public GeneralSecurityInfoImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SECID$0 = 
        new javax.xml.namespace.QName("", "SECID");
    private static final javax.xml.namespace.QName SECNAME$2 = 
        new javax.xml.namespace.QName("", "SECNAME");
    private static final javax.xml.namespace.QName TICKER$4 = 
        new javax.xml.namespace.QName("", "TICKER");
    private static final javax.xml.namespace.QName FIID$6 = 
        new javax.xml.namespace.QName("", "FIID");
    private static final javax.xml.namespace.QName RATING$8 = 
        new javax.xml.namespace.QName("", "RATING");
    private static final javax.xml.namespace.QName UNITPRICE$10 = 
        new javax.xml.namespace.QName("", "UNITPRICE");
    private static final javax.xml.namespace.QName DTASOF$12 = 
        new javax.xml.namespace.QName("", "DTASOF");
    private static final javax.xml.namespace.QName CURRENCY$14 = 
        new javax.xml.namespace.QName("", "CURRENCY");
    private static final javax.xml.namespace.QName MEMO$16 = 
        new javax.xml.namespace.QName("", "MEMO");
    
    
    /**
     * Gets the "SECID" element
     */
    public net.ofx.types.x2003.x04.SecurityId getSECID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityId target = null;
            target = (net.ofx.types.x2003.x04.SecurityId)get_store().find_element_user(SECID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "SECID" element
     */
    public void setSECID(net.ofx.types.x2003.x04.SecurityId secid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityId target = null;
            target = (net.ofx.types.x2003.x04.SecurityId)get_store().find_element_user(SECID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.SecurityId)get_store().add_element_user(SECID$0);
            }
            target.set(secid);
        }
    }
    
    /**
     * Appends and returns a new empty "SECID" element
     */
    public net.ofx.types.x2003.x04.SecurityId addNewSECID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityId target = null;
            target = (net.ofx.types.x2003.x04.SecurityId)get_store().add_element_user(SECID$0);
            return target;
        }
    }
    
    /**
     * Gets the "SECNAME" element
     */
    public java.lang.String getSECNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SECNAME$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "SECNAME" element
     */
    public net.ofx.types.x2003.x04.SecurityNameType xgetSECNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityNameType target = null;
            target = (net.ofx.types.x2003.x04.SecurityNameType)get_store().find_element_user(SECNAME$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "SECNAME" element
     */
    public void setSECNAME(java.lang.String secname)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SECNAME$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SECNAME$2);
            }
            target.setStringValue(secname);
        }
    }
    
    /**
     * Sets (as xml) the "SECNAME" element
     */
    public void xsetSECNAME(net.ofx.types.x2003.x04.SecurityNameType secname)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityNameType target = null;
            target = (net.ofx.types.x2003.x04.SecurityNameType)get_store().find_element_user(SECNAME$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.SecurityNameType)get_store().add_element_user(SECNAME$2);
            }
            target.set(secname);
        }
    }
    
    /**
     * Gets the "TICKER" element
     */
    public java.lang.String getTICKER()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TICKER$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "TICKER" element
     */
    public net.ofx.types.x2003.x04.TickerType xgetTICKER()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TickerType target = null;
            target = (net.ofx.types.x2003.x04.TickerType)get_store().find_element_user(TICKER$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "TICKER" element
     */
    public boolean isSetTICKER()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TICKER$4) != 0;
        }
    }
    
    /**
     * Sets the "TICKER" element
     */
    public void setTICKER(java.lang.String ticker)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TICKER$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TICKER$4);
            }
            target.setStringValue(ticker);
        }
    }
    
    /**
     * Sets (as xml) the "TICKER" element
     */
    public void xsetTICKER(net.ofx.types.x2003.x04.TickerType ticker)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TickerType target = null;
            target = (net.ofx.types.x2003.x04.TickerType)get_store().find_element_user(TICKER$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.TickerType)get_store().add_element_user(TICKER$4);
            }
            target.set(ticker);
        }
    }
    
    /**
     * Unsets the "TICKER" element
     */
    public void unsetTICKER()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TICKER$4, 0);
        }
    }
    
    /**
     * Gets the "FIID" element
     */
    public java.lang.String getFIID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FIID$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "FIID" element
     */
    public net.ofx.types.x2003.x04.FinancialInstitutionIdType xgetFIID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.FinancialInstitutionIdType target = null;
            target = (net.ofx.types.x2003.x04.FinancialInstitutionIdType)get_store().find_element_user(FIID$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "FIID" element
     */
    public boolean isSetFIID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FIID$6) != 0;
        }
    }
    
    /**
     * Sets the "FIID" element
     */
    public void setFIID(java.lang.String fiid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FIID$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FIID$6);
            }
            target.setStringValue(fiid);
        }
    }
    
    /**
     * Sets (as xml) the "FIID" element
     */
    public void xsetFIID(net.ofx.types.x2003.x04.FinancialInstitutionIdType fiid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.FinancialInstitutionIdType target = null;
            target = (net.ofx.types.x2003.x04.FinancialInstitutionIdType)get_store().find_element_user(FIID$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.FinancialInstitutionIdType)get_store().add_element_user(FIID$6);
            }
            target.set(fiid);
        }
    }
    
    /**
     * Unsets the "FIID" element
     */
    public void unsetFIID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FIID$6, 0);
        }
    }
    
    /**
     * Gets the "RATING" element
     */
    public java.lang.String getRATING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RATING$8, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "RATING" element
     */
    public net.ofx.types.x2003.x04.Rating xgetRATING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Rating target = null;
            target = (net.ofx.types.x2003.x04.Rating)get_store().find_element_user(RATING$8, 0);
            return target;
        }
    }
    
    /**
     * True if has "RATING" element
     */
    public boolean isSetRATING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RATING$8) != 0;
        }
    }
    
    /**
     * Sets the "RATING" element
     */
    public void setRATING(java.lang.String rating)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RATING$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RATING$8);
            }
            target.setStringValue(rating);
        }
    }
    
    /**
     * Sets (as xml) the "RATING" element
     */
    public void xsetRATING(net.ofx.types.x2003.x04.Rating rating)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Rating target = null;
            target = (net.ofx.types.x2003.x04.Rating)get_store().find_element_user(RATING$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.Rating)get_store().add_element_user(RATING$8);
            }
            target.set(rating);
        }
    }
    
    /**
     * Unsets the "RATING" element
     */
    public void unsetRATING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RATING$8, 0);
        }
    }
    
    /**
     * Gets the "UNITPRICE" element
     */
    public java.lang.String getUNITPRICE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNITPRICE$10, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "UNITPRICE" element
     */
    public net.ofx.types.x2003.x04.UnitPriceType xgetUNITPRICE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UnitPriceType target = null;
            target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().find_element_user(UNITPRICE$10, 0);
            return target;
        }
    }
    
    /**
     * True if has "UNITPRICE" element
     */
    public boolean isSetUNITPRICE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(UNITPRICE$10) != 0;
        }
    }
    
    /**
     * Sets the "UNITPRICE" element
     */
    public void setUNITPRICE(java.lang.String unitprice)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNITPRICE$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(UNITPRICE$10);
            }
            target.setStringValue(unitprice);
        }
    }
    
    /**
     * Sets (as xml) the "UNITPRICE" element
     */
    public void xsetUNITPRICE(net.ofx.types.x2003.x04.UnitPriceType unitprice)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UnitPriceType target = null;
            target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().find_element_user(UNITPRICE$10, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().add_element_user(UNITPRICE$10);
            }
            target.set(unitprice);
        }
    }
    
    /**
     * Unsets the "UNITPRICE" element
     */
    public void unsetUNITPRICE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(UNITPRICE$10, 0);
        }
    }
    
    /**
     * Gets the "DTASOF" element
     */
    public java.lang.String getDTASOF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTASOF$12, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTASOF" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTASOF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTASOF$12, 0);
            return target;
        }
    }
    
    /**
     * True if has "DTASOF" element
     */
    public boolean isSetDTASOF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DTASOF$12) != 0;
        }
    }
    
    /**
     * Sets the "DTASOF" element
     */
    public void setDTASOF(java.lang.String dtasof)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTASOF$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTASOF$12);
            }
            target.setStringValue(dtasof);
        }
    }
    
    /**
     * Sets (as xml) the "DTASOF" element
     */
    public void xsetDTASOF(net.ofx.types.x2003.x04.DateTimeType dtasof)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTASOF$12, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTASOF$12);
            }
            target.set(dtasof);
        }
    }
    
    /**
     * Unsets the "DTASOF" element
     */
    public void unsetDTASOF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DTASOF$12, 0);
        }
    }
    
    /**
     * Gets the "CURRENCY" element
     */
    public net.ofx.types.x2003.x04.Currency getCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().find_element_user(CURRENCY$14, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "CURRENCY" element
     */
    public boolean isSetCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CURRENCY$14) != 0;
        }
    }
    
    /**
     * Sets the "CURRENCY" element
     */
    public void setCURRENCY(net.ofx.types.x2003.x04.Currency currency)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().find_element_user(CURRENCY$14, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.Currency)get_store().add_element_user(CURRENCY$14);
            }
            target.set(currency);
        }
    }
    
    /**
     * Appends and returns a new empty "CURRENCY" element
     */
    public net.ofx.types.x2003.x04.Currency addNewCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().add_element_user(CURRENCY$14);
            return target;
        }
    }
    
    /**
     * Unsets the "CURRENCY" element
     */
    public void unsetCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CURRENCY$14, 0);
        }
    }
    
    /**
     * Gets the "MEMO" element
     */
    public java.lang.String getMEMO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MEMO$16, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "MEMO" element
     */
    public net.ofx.types.x2003.x04.MessageType xgetMEMO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.MessageType target = null;
            target = (net.ofx.types.x2003.x04.MessageType)get_store().find_element_user(MEMO$16, 0);
            return target;
        }
    }
    
    /**
     * True if has "MEMO" element
     */
    public boolean isSetMEMO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MEMO$16) != 0;
        }
    }
    
    /**
     * Sets the "MEMO" element
     */
    public void setMEMO(java.lang.String memo)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MEMO$16, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MEMO$16);
            }
            target.setStringValue(memo);
        }
    }
    
    /**
     * Sets (as xml) the "MEMO" element
     */
    public void xsetMEMO(net.ofx.types.x2003.x04.MessageType memo)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.MessageType target = null;
            target = (net.ofx.types.x2003.x04.MessageType)get_store().find_element_user(MEMO$16, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.MessageType)get_store().add_element_user(MEMO$16);
            }
            target.set(memo);
        }
    }
    
    /**
     * Unsets the "MEMO" element
     */
    public void unsetMEMO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MEMO$16, 0);
        }
    }
}
